﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="TechJunkieProj._Default" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .latestDisc4
        {
            width: 248px;
        }
        
        .style4
        {
            font-size: x-large;
        }
        .Information
        {
            height: 318px;
            width: 245px;
        }
        .latestDiscussions2
        {
            width: 331px;
            height: 318px;
        }
        .latestDisc4
        {
            height: 283px;
        }
        .MainImagert09aal
        {
            height: 150px;
        }
        .companyImages
    {
        height: 161px;
        text-align: center;
    }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div id="ContentBody">
    </div>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
<div style="border-style: none;">
<br /><br /><br /><br />
    <strong style="font-size:large; font-family: Calibri;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TechJunkie is your source for technology news that matters</strong>

    <br />
    <br />
    <b>
    Various upcoming smart phones are discussed by consumers to update the followers 
    with the tech world update in the area of smartphones
    So get inside the tech world..become a TechJunkie
    </b>
    <br />
    <br />
    <b> If you&#39;re a registered user, you&#39;ll be able to take advantage of this service 
    and start your own interesting public discussion group, post a comment, upload images which you can tag and last 
    but not least have your own profile page which you can manage yourself. This 
    service is for everyone who is interested in the world of <b>SMARTPHONES.<br />
    <br />
    </b> &nbsp;&nbsp;&nbsp;</b>
   
    <div class = "companyImages">
    
    
        <asp:Image ID="Image10" runat="server" BorderStyle="Solid" Height="139px" 
            ImageUrl="~/Pictures/IMG1.PNG" Width="195px" />
        <asp:Image ID="Image11" runat="server" BorderStyle="Solid" Height="139px" 
            ImageUrl="~/Pictures/IMG2.PNG" style="text-align: center" 
            Width="195px" />
        <asp:Image ID="Image12" runat="server" BorderStyle="Solid" Height="139px" 
            ImageUrl="~/Pictures/IMG3.PNG" Width="195px" />
    
    
        &nbsp&nbsp&nbsp&nbsp</div><br />

</div>
    <div id="SecondContent">
<div class="latestDiscussions1">
    <div class="Information">
        <div class ="latestDiscussions3">
                <div style="text-align: center; font-size: x-large; height: 44px; width: 311px; background-color: #CCCCCC; position:relative; top: 2px; left: 260px;" 
        class="style4">
                    <strong>New Question</strong></div> <br /><br />
                    <div style="height: 303px; width: 315px; position:relative; top: 7px; left: 256px;" 
                class = "latestDisc4">
                        <asp:ListView ID="ListView2" runat="server" DataKeyNames="ID" 
                            DataSourceID="SqlDataSource2">
                            <AlternatingItemTemplate>
                                <span style="background-color: #FFFFFF;color: #284775;">
                                 
                                 <asp:HyperLink ID = "HyperLink1" NavigateUrl='<%# Eval("ID", "ViewQuestionDetails.aspx?ID={0}") %>'  runat="server" >
                                <asp:Label ID="QuestionLabel" runat="server" Text='<%# Eval("Question") %>' />
                                </asp:HyperLink><br />Author: <asp:Label ID="AuthorLabel" runat="server" Text='<%# Eval("Author") %>' />
                                <br />
                                DateUpdated: <asp:Label ID="DateUpdatedLabel" runat="server" 
                                    Text='<%# Eval("DateUpdated") %>' />
                                <br />
<br /></span>
                            </AlternatingItemTemplate>
                            <EditItemTemplate>
                                <span style="background-color: #999999;">ID: <asp:Label ID="IDLabel1" runat="server" Text='<%# Eval("ID") %>' />
                                <br />
                                Question: <asp:TextBox ID="QuestionTextBox" runat="server" 
                                    Text='<%# Bind("Question") %>' />
                                <br />
                                Author: <asp:TextBox ID="AuthorTextBox" runat="server" Text='<%# Bind("Author") %>' />
                                <br />
                                DateUpdated: <asp:TextBox ID="DateUpdatedTextBox" runat="server" 
                                    Text='<%# Bind("DateUpdated") %>' />
                                <br />
                                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                                    Text="Update" />
                                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                    Text="Cancel" />
                                <br /><br /></span>
                            </EditItemTemplate>
                            <EmptyDataTemplate>
                                <span>No data was returned.</span></EmptyDataTemplate><InsertItemTemplate>
                                <span style="">Question: <asp:TextBox ID="QuestionTextBox" runat="server" 
                                    Text='<%# Bind("Question") %>' />
                                <br />Author: <asp:TextBox ID="AuthorTextBox" runat="server" Text='<%# Bind("Author") %>' />
                                <br />DateUpdated: <asp:TextBox ID="DateUpdatedTextBox" runat="server" 
                                    Text='<%# Bind("DateUpdated") %>' />
                                <br />
                                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                                    Text="Insert" />
                                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                    Text="Clear" />
                                <br /><br /></span>
                            </InsertItemTemplate>
                            <ItemTemplate>
                                <span style="background-color: #E0FFFF; color: #333333;">
                                 <asp:HyperLink ID = "HyperLink1" NavigateUrl='<%# Eval("ID", "ViewQuestionDetails.aspx?ID={0}") %>'  runat="server" >
                                <asp:Label ID="QuestionLabel" runat="server" Text='<%# Eval("Question") %>' />
                                </asp:HyperLink><br />Author: <asp:Label ID="AuthorLabel" runat="server" Text='<%# Eval("Author") %>' />
                                <br />
                                DateUpdated: <asp:Label ID="DateUpdatedLabel" runat="server" 
                                    Text='<%# Eval("DateUpdated") %>' />
                                <br />
<br /></span>
                            </ItemTemplate>
                            <LayoutTemplate>
                                <div ID="itemPlaceholderContainer" runat="server" 
                                    style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                                    <span runat="server" id="itemPlaceholder" />
                                </div>
                                <div style="text-align: center;background-color: #5D7B9D;font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF;">
                                </div>
                            </LayoutTemplate>
                            <SelectedItemTemplate>
                                <span style="background-color: #E2DED6; color: #333333; font-weight: bold;">ID: <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
                                <br />
                                Question: <asp:Label ID="QuestionLabel" runat="server" Text='<%# Eval("Question") %>' />
                                <br />
                                Author: <asp:Label ID="AuthorLabel" runat="server" Text='<%# Eval("Author") %>' />
                                <br />
                                DateUpdated: <asp:Label ID="DateUpdatedLabel" runat="server" 
                                    Text='<%# Eval("DateUpdated") %>' />
                                <br />
<br /></span>
                            </SelectedItemTemplate>
                        </asp:ListView>
                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
                            ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" 
                            SelectCommand="SELECT TOP 2 ID, Question, Author, DateUpdated FROM Question ORDER BY DateUpdated DESC">
                        </asp:SqlDataSource>
                    </div>
                </div>
                <div style="text-align: center; font-size: x-large; height: 44px; width: 311px; background-color: #CCCCCC; position:relative; top: -378px; left: 589px;" 
        class="style4"><strong>Today's Top 2 Words</strong></div><br /><br />
                    <div style="height: 303px; width: 315px; position:relative; top: -373px; left: 591px;" 
                class = "latestDisc4">
                        <h4><b>Click on the word for meaning...</b></h4><br />
                        <asp:Accordion ID="Accordion1" runat="server" DataSourceID= "SqlDataSource4">
                        <HeaderTemplate>
                            <b><u><%# DataBinder.Eval(Container.DataItem, "Word")%></u></b>
                            </HeaderTemplate>
                            <ContentTemplate>
                            <%# DataBinder.Eval(Container.DataItem, "Meaning")%>
                            </ContentTemplate>
                        </asp:Accordion>
                        <asp:SqlDataSource ID="SqlDataSource4" 
                runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
                ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" 
                SelectCommand="SELECT TOP 2 Word, Meaning FROM Glossary ORDER BY Rnd(ID)"></asp:SqlDataSource>
                            </div>
                <div class="latestDisc4" 
            style="position:relative; top: -712px; left: -2px;"><br /><br />
                    <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
                        <AlternatingItemTemplate>
                            <span style="background-color: #FFFFFF;color: #284775;">&nbsp; <asp:HyperLink ID = "HyperLink1" NavigateUrl='<%# Eval("ID", "Details.aspx?ID={0}") %>' runat="server" >
                            <asp:Label 
                                ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>' />
                                </asp:HyperLink><br />Author: <asp:Label ID="AuthorLabel" runat="server" Text='<%# Eval("Author") %>' />
                            <br />
                            DateUpdated: <asp:Label ID="DateUpdatedLabel" runat="server" 
                                Text='<%# Eval("DateUpdated") %>' />
                            <br />
<br /></span>
                        </AlternatingItemTemplate>
                        <EditItemTemplate>
                            <span style="background-color: #999999;">Title: <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Title") %>' />
                            <br />
                            Author: <asp:TextBox ID="AuthorTextBox" runat="server" Text='<%# Bind("Author") %>' />
                            <br />
                            DateUpdated: <asp:TextBox ID="DateUpdatedTextBox" runat="server" 
                                Text='<%# Bind("DateUpdated") %>' />
                            <br />
                            <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                                Text="Update" />
                            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                Text="Cancel" />
                            <br /><br /></span>
                        </EditItemTemplate>
                        <EmptyDataTemplate>
                            <span>No data was returned.</span></EmptyDataTemplate><InsertItemTemplate>
                            <span style="">Title: <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Title") %>' />
                            <br />Author: <asp:TextBox ID="AuthorTextBox" runat="server" Text='<%# Bind("Author") %>' />
                            <br />DateUpdated: <asp:TextBox ID="DateUpdatedTextBox" runat="server" 
                                Text='<%# Bind("DateUpdated") %>' />
                            <br />
                            <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                                Text="Insert" />
                            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                Text="Clear" />
                            <br /><br /></span>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <span style="background-color: #E0FFFF; color: #333333;">
                            <asp:HyperLink ID = "HyperLink1" NavigateUrl='<%# Eval("ID", "Details.aspx?ID={0}") %>' runat="server" >
                            <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                            </asp:HyperLink><br />Author: <asp:Label ID="AuthorLabel" runat="server" Text='<%# Eval("Author") %>' />
                            <br />
                            DateUpdated: <asp:Label ID="DateUpdatedLabel" runat="server" 
                                Text='<%# Eval("DateUpdated") %>' />
                            <br />
                            <br />
                            </span>
                        </ItemTemplate>
                        <LayoutTemplate>
                            <div ID="itemPlaceholderContainer" runat="server" 
                                style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                                <span runat="server" id="itemPlaceholder" />
                            </div>
                            <div style="text-align: center;background-color: #5D7B9D;font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF;">
                            </div>
                        </LayoutTemplate>
                        <SelectedItemTemplate>
                            <span style="background-color: #E2DED6;font-weight: bold;color: #333333;">Title: <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>' />
                            <br />
                            Author: <asp:Label ID="AuthorLabel" runat="server" Text='<%# Eval("Author") %>' />
                            <br />
                            DateUpdated: <asp:Label ID="DateUpdatedLabel" runat="server" 
                                Text='<%# Eval("DateUpdated") %>' />
                            <br />
<br /></span>
                        </SelectedItemTemplate>
                    </asp:ListView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
                        ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" 
                        
                        SelectCommand="SELECT TOP 2 ID,Title, Author, DateUpdated FROM SmartPhoneList ORDER BY DateUpdated DESC">
                    </asp:SqlDataSource>
       <br />
        <br />
        
    </div>
</div>
</div>
</div>
    <asp:Panel ID="Panel1" runat="server">
        <asp:LinkButton ID="LinkButton1" runat="server" CssClass="ExtremeLeftDisplay">Go To my Profile</asp:LinkButton><div 
                       
            style="background-color: #C0C0C0; font-size: x-large; height: 39px; text-align: center; width: 247px;position:relative; top: -314px; left: -5px;"><strong>New Discussions</strong></div></asp:Panel></asp:Content>